﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="RequiredList.aspx.cs" Inherits="Jzy.Web.WorkFlow.Fore.TaskList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>待办箱列表</title>
    <style type="text/css">
        .style1{width:80px; height:25px;color:#888888; padding-left:20px;}
        .style2{height:25px; padding-left:10px;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <ul>
            <li>
                <asp:DropDownList ID="drpSortExpression" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="drpSort_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:DropDownList ID="drpSortDirection" runat="server" AutoPostBack="True"  onselectedindexchanged="drpSort_SelectedIndexChanged">
                </asp:DropDownList>
            </li>
        </ul>
    </div>
    <div id="main" style="padding-top:10px;">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" style="width:100%">
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                <tr style="margin-top:10px;">
                    <td colspan="6" class="style2" style='<%#GetReadStyle(Eval("ReadTime"))%>'>
                        <input id="Checkbox1" type="checkbox" style="float: left; margin-right: 3px;" />
                        <div style="margin-bottom: 5px; float: left;">
                            <asp:Image ID="Image1" runat="server" ImageAlign="AbsMiddle" ImageUrl='<%#GetReadImage(Eval("ReadTime")) %>' />&nbsp;<asp:HyperLink
                                ID="HyperLink1" runat="server" NavigateUrl='<%#"~/WorkFlow/Fore/DoForm.aspx?TaskID=" +  Eval("ID") + "&FlowID=" + Eval("FlowID") %>'><%#GetForm(Eval("FormInfo")).Name %></asp:HyperLink>
                        <%#(Jzy.Workflow.Task.FromType)(int)Eval("FromType") == Jzy.Workflow.Task.FromType.退回 ? "<span style='font-weight:bold;color:red'>(退回)</span>" : "" %>         
                       </div>
                    </td>
                </tr>
                <tr>
                    <td class="style1">拟稿人：</td>
                    <td><%#GetForm(Eval("FormInfo")).CreatorName %></td>
                    <td class="style1">拟稿时间：</td>
                    <td><%#GetForm(Eval("FormInfo")).InputTime %></td>
                    <td class="style1">上一节点：</td>
                    <td><%#Eval("SendNodeName") %></td>
                </tr>
                <tr>
                    <td class="style1">发送人：</td>
                    <td><%#Eval("SendName") %></td>
                    <td class="style1">到达时间：</td>
                    <td><%#Eval("SendTime")%></td>
                    <td class="style1">任务来源：</td>
                    <td><%#GetFromType(Eval("FromType"))%></td>                    
                </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="6" class="empty">没有待办件</td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
</asp:Content>
